package lec05.am;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class GridLayoutDemo extends JFrame{
	
	public GridLayoutDemo() {
		this.setLayout(new GridLayout(4,4));
		char cs[]="0123456789ABCDEF".toCharArray();
		for(int i=0;i<cs.length;i++)
			this.add(new JButton(cs[i]+""));
		setVisible(true);
	}
	
	public static void main(String[] args) {
		new GridLayoutDemo();
	}

}
